
function showMessengerDialog(msg){
    if ($("#dialog").length <= 0) {
        $("body").append("<div id='dialog'><p>" + msg + "</p></div>");
    }else {
        $("#dialog p").text(msg);
    }
    $("#dialog").dialog({
        title:  '提示',
        width:  420,
        height: 180,
        autoOpen: false,
		buttons: {
			Cancel: function() {
			  $( this ).dialog( "close" );
			}
		},
        show: {
            effect: "blind",
            duration: 1000
        },
        hide: {
            effect: "blind",
            duration: 1000
        }
    });
	$("#dialog").dialog("open");
}